/*
 * @Author: lmk
 * @Date: 2022-04-18 22:52:20
 * @LastEditTime: 2022-04-28 13:17:05
 * @LastEditors: lmk
 * @Description: 
 */
/**
 * @description: 
 * @param {*} parent 对象
 * @param {*} selector 字段
 * @param {*} isZh 是否中文
 * @return {*}
 */
export function getElementText(content) {
  if(!content) return '';
  const div = document.createElement('div');
  div.innerHTML = content;
  return div.innerText || ''
}